import request from '@/utils/request'

// 查询微信退款日志列表
export function listRefund(query) {
  return request({
    url: '/accompany/refund/list',
    method: 'get',
    params: query
  })
}

// 查询微信退款日志详细
export function getRefund(refundLogId) {
  return request({
    url: '/accompany/refund/' + refundLogId,
    method: 'get'
  })
}

// 新增微信退款日志
export function addRefund(data) {
  return request({
    url: '/accompany/refund',
    method: 'post',
    data: data
  })
}

// 修改微信退款日志
export function updateRefund(data) {
  return request({
    url: '/accompany/refund',
    method: 'put',
    data: data
  })
}

// 删除微信退款日志
export function delRefund(refundLogId) {
  return request({
    url: '/accompany/refund/' + refundLogId,
    method: 'delete'
  })
}
